require('zerenity/messagedialog')

module Zerenity
  # Displays a question dialog. Returns true if OK is clicked, false if 
  # Cancel is clicked.
  def self.Question(options={})
    Question.run(options)
  end

  class Question < MessageDialog # :nodoc:
    def self.check(options)
      super(options)
    end

    def self.build(options)
      super(options)
      options[:type] = Gtk::MessageDialog::QUESTION
      options[:cancel_button] = Gtk::Button.new(Gtk::Stock::CANCEL) 
    end
  end
end
